package com.define.commons.query.service.impl;

/**
 * 根据泛型提供基础CRUD的ServiceImpl
 * 使用FastMybatis实现
 *
 * @Author xiewenlong
 * @Date 2018/10/31 12:49
 */
/*public abstract class FastMybatisServiceImpl<T, I> implements FastMybatisBaseService<T, I> {

    @Autowired
    private FastMybatisBaseDao<T, I> mapper;

    *//*
    该方法与通用mapper冲突，已废除
    @Override
    public int delete(T t) {
        return mapper.delete(t);
    }*//*

    @Override
    public int deleteById(I i) {
        return mapper.deleteById(i);
    }

    @Override
    public int deleteByQuery(Query query) {
        return mapper.deleteByQuery(query);
    }

    @Override
    public int save(T t) {
        return mapper.save(t);
    }

    @Override
    public int saveIgnoreNull(T t) {
        return mapper.saveIgnoreNull(t);
    }

    @Override
    public int saveBatch(List<T> list) {
        return mapper.saveBatch(list);
    }

    @Override
    public int saveMulti(List<T> list) {
        return mapper.saveMulti(list);
    }

    @Override
    public int saveMultiSet(List<T> list) {
        return mapper.saveMultiSet(list);
    }

    @Override
    public T getById(I i) {
        return mapper.getById(i);
    }

    @Override
    public T getByQuery(Query query) {
        return mapper.getByQuery(query);
    }

    @Override
    public T getByColumn(String s, Object o) {
        return mapper.getByColumn(s, o);
    }

    @Override
    public long getCount(Query query) {
        return mapper.getCount(query);
    }

    @Override
    public List<T> listByColumn(String s, Object o) {
        return mapper.listByColumn(s, o);
    }

    @Override
    public List<T> list(Query query) {
        return mapper.list(query);
    }

    @Override
    public List<Map<String, Object>> listMap(List<String> list, Query query) {
        return mapper.listMap(list, query);
    }

    @Override
    public int update(T t) {
        return mapper.update(t);
    }

    @Override
    public int updateIgnoreNull(T t) {
        return mapper.updateIgnoreNull(t);
    }

    @Override
    public int updateByQuery(Object o, Query query) {
        return mapper.updateByQuery(o, query);
    }
}*/
